﻿using System;
using System.Collections.Generic;
using EPiBoost.Plugins.ContentTypeManager.Model;

namespace EPiBoost.Core.Plugins.Gui.Admin.ContentTypeManager.Model
{
	public class ContentTypeInfo
	{
		public string ContentTypeName { get; set; }
		public string ContentTypeDisplayName { get; set; }
		public Guid ContentTypeGuid { get; set; }
		public List<ContentPropertyInfo> ContentProperties { get; set; }
		public bool IsPageType { get; set; }
		public bool IsBlockType { get; set; }

		public string ContentTypeDescription
		{
			get
			{
				if (IsBlockType)
				{
					return "Block";
				}
				if (IsPageType)
				{
					return "Page";
				}
				return "Unknown";
			}
		}

		public ContentTypeInfo()
		{
			ContentProperties = new List<ContentPropertyInfo>();
		}
	}
}
